<template>
  <agent-list
    ref="shippingCompany"
    v-model="model.shipCompanyId"
    nature="SHIPPING_COMPANY"
    @change="handleCompanyChange"
  />
</template>
<script>
import AgentList from '@packages/internal/AgentList'
export default {
  name: 'SophiaConsoleAdminAgentList',
  components: {
    [AgentList.name]: AgentList
  },
  data () {
    return {
      model: {
        shipCompanyId: undefined
      }
    }
  },
  methods: {
    handleCompanyChange (val, option) {
      console.log(val, option)
    }
  }
}
</script>
